package cn.itsource.petHome.org.domain;

import cn.itsource.petHome.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
public class Shop extends BaseDomain {
//     `id` bigint(20) NOT NULL AUTO_INCREMENT,
//  `name` varchar(255) DEFAULT NULL,
//  `tel` varchar(255) DEFAULT NULL,
//  `registerTime` date DEFAULT NULL,
//            `state` int(1) DEFAULT NULL,
//  `address` varchar(255) DEFAULT NULL,
//  `logo` varchar(255) DEFAULT NULL,
//  `admin_id` bigint(20) NOT NULL,
    private String name;
    private String tel;
    //创建时间
    // 当返回json格式的时候，时间返回格式是yyyy-MM-dd HH:mm:ss
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registerTime;
    //1为启用，0为禁用
    private Integer state;

    private String address;
    private String logo;
    private Employee employee;
}
